package day14.volatiledemo02;

/**
 * @author Xiao
 * @date 2021/8/7
 */
public class Girl implements Runnable{
    @Override
    public void run() {
        while (true) {
            synchronized (Money.lock) {
                if (Money.money != 100000) {
                    System.out.println("结婚基金不是10万了");
                    break;
                }
            }
        }
    }
}
